﻿<Window x:Class="UI.Windows.Archive"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Create Show Archive" Height="300" Width="518" WindowStartupLocation="CenterScreen" WindowState="Maximized" Icon="/Q2Q;component/Images/logo.ico" Style="{DynamicResource CustomWindowStyle}">
	<Window.Resources>
		<Style TargetType="TextBlock">
			<Setter Property="Foreground" Value="{DynamicResource TextForeground2}" />
		</Style>
	</Window.Resources>
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="*" />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>

		<!--<Grid Grid.Row="0" Height="44" Background="{DynamicResource PopupWindowAccent}">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="*" />
			</Grid.ColumnDefinitions>
			<StackPanel Grid.Column="0" Margin="10" VerticalAlignment="Top" HorizontalAlignment="Left">
				<TextBlock FontSize="16" Text="Create Show Archive" HorizontalAlignment="Left" Foreground="White"  />
			</StackPanel>
			--><!--<Image Grid.Column="1" Width="32" Height="32" Margin="0,0,20,0" HorizontalAlignment="Right" VerticalAlignment="Center" Source="/Q2Q;component/Images/32x32/Number.png" />--><!--
		</Grid>-->
		<Grid Grid.Row="1">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="*" />
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="Auto" />
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition Height="Auto" />
			</Grid.RowDefinitions>
			<TextBox Margin="6" Grid.Column="0" VerticalAlignment="Center" IsReadOnly="True" Text="{Binding FullPath, Mode=OneWay}" />
			<Button x:Name="Browse" Content="Browse" Width="75" Height="24" Margin="8" Grid.Column="1" />
			<Button x:Name="Location" Content="Reveal Folder" Width="80" Height="24" Margin="8" Grid.Column="2" />
			
			<StackPanel Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Right">
				<CheckBox Content="Delete Unused Files" Margin="8,2" IsChecked="{Binding DeleteUnusedAudioFiles}" />
			</StackPanel>
		</Grid>

		<Grid Grid.Row="2">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="1*" />
				<ColumnDefinition Width="1*" />
			</Grid.ColumnDefinitions>
			<TextBlock Grid.Column="0" HorizontalAlignment="Center" Text="Archive Process" VerticalAlignment="Top" />
			<TextBox   Grid.Column="0" Text="{Binding Details}" IsReadOnly="True" Margin="8,20,8,8" />

			<Grid Grid.Column="1">
				<Grid.RowDefinitions>
					<RowDefinition Height="2*" />
					<RowDefinition Height="Auto" />
				</Grid.RowDefinitions>
				<TextBlock Grid.Row="0" HorizontalAlignment="Center" Text="Missing Files" VerticalAlignment="Top" />
				<ListBox   Grid.Row="0" ItemsSource="{Binding MissingFileList}" Margin="8,20,8,8" />
				<TextBlock Grid.Row="1" Visibility="{Binding HasUnusedFiles, Converter={StaticResource BooleanToVisibilityConverter}}" HorizontalAlignment="Center" Text="Unused Files" VerticalAlignment="Top" />
				<ListBox   Grid.Row="1" Visibility="{Binding HasUnusedFiles, Converter={StaticResource BooleanToVisibilityConverter}}" ItemsSource="{Binding UnusedFileList}" Margin="8,20,8,8" />
			</Grid>
		</Grid>

		<Border Grid.Row="3" Background="{DynamicResource PopupWindowAccent}">
			<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
				<Button x:Name="Closure" Content="Close" Width="75" Height="24" Margin="8" IsCancel="True" />
				<Button x:Name="Archive" Content="Archive" Width="75" Height="24" Margin="8" />
			</StackPanel>
		</Border>

	</Grid>
</Window>
